﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="QueryRight.aspx.cs" Inherits="SystemManager_QueryRight" %>

<%@ Register Src="~/UserControls/Calendar.ascx" TagName="Calendar" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>查询权限设置</title>
    <link href="../css/page.css" rel="stylesheet" type="text/css" />
    <script src="../ScriptFile/popcalendar.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 99%; margin: 0px auto; text-align: center;">
        <table class="box_middle_tab" width="95%">
            <tr>
                <td style="width: 10%">
                    待授权流程
                </td>
                <td style="width: 30%">
                    <asp:DropDownList ID="ddlProcessName" runat="server" Width="100%">
                    </asp:DropDownList>
                </td>
                <td style="width: 10%">
                    授权给
                </td>
                <td style="width: 50%">
                    <asp:DropDownList ID="ddlUnit" runat="server" Width="30%" AutoPostBack="True" OnSelectedIndexChanged="ddlUnit_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlDep" runat="server" Width="30%" AutoPostBack="True" OnSelectedIndexChanged="ddlDep_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlUserName" runat="server" Width="30%">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td colspan="4" style="text-align: center">
                    &nbsp;
                    <asp:Button Text="新增授权" ID="btnUpdate" class="NewButton" runat="server" OnClick="btnUpdate_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="4" style="text-align: center">
                    <controlDefine:MessageBox ID="mbInfo" runat="server" Width="100%" BoxType="Info" />
                    授权列表
                </td>
            </tr>
            <tr>
                <td colspan="4" style="height: 25px">
                    <controlDefine:CustomGridView ID="gridviewCar" runat="server" AllowPaging="True" Width="100%" SkinID="List" HideTextLength="20" AutoGenerateColumns="False" ShowCmpAndCancel="False" AllowOnMouseOverEvent="False" ShowItemNumber="True" AutoGenerateDeleteConfirm="True" OnRowDeleting="gridviewCar_RowDeleting" OnOnLoadData="gridviewCar_OnLoadData">
                        <PagerSettings Visible="False" />
                        <Columns>
                            <asp:BoundField HeaderText="用户" DataField="UserName" />
                            <asp:BoundField DataField="task" HeaderText="有权限的业务" />
                            <asp:TemplateField HeaderText="删除" ShowHeader="False">
                                <ItemTemplate>
                                    <asp:LinkButton ID="ImageButton1" runat="server" CausesValidation="false" CommandName="Delete" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID")%>' Text="删除" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </controlDefine:CustomGridView>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
